﻿using IPC.ListConnect.Profinet;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IPC.WinForm.ControlExtend
{
    public class TreeNodeExtend :TreeNode
    {
        #region 节点类型
        private TreeNodeType _nodeType = TreeNodeType.None;
        public TreeNodeType NodeType
        {
            get
            {
                return _nodeType;
            }
            set
            {
                _nodeType = value;
            }
        }
        #endregion

        #region 通道类型
        private ChannelType _channelType;
        public ChannelType ChannelType
        {
            get
            {
                return _channelType;
            }
            set
            {
                _channelType = value;
            }
        } 
        #endregion

        #region 设备类型
        private EquipType _equipType = EquipType.None;

        public EquipType EquipType
        {
            get
            {
                return _equipType;
            }
            set
            {
                _equipType = value;
            }
        }

        
        #endregion

        #region 全名
        private string _fullName = string.Empty;

        /// <summary>
        /// 设备全名
        /// </summary>
        public string FullName { get => _fullName; set => _fullName = value; }
        #endregion

        public TreeNodeExtend(string text):base(text)
        {

        }
    }
}
